
<meta charset="utf-8">
<script>
    var sum = 0;
    var i = 0;
    while(i<=100){
        sum = sum+i;
        i = i+2;
    }
    alert(sum);
</script>